var mongoose = require('../mongoDB');
// Schma 图表
var Schema = mongoose.Schema;
// 建一个图表实例
var postSchema = new Schema({
    title:{
        type:String,
        required:true
    },
    post:{
        type:String,
        required:true
    },
    username:{
        type:String,
        required:true
    },
    publishTime:{
        type:Number,
        required:true
    }
});
var postModel = mongoose.model('post',postSchema);
module.exports = postModel;